function display(S)
% BVQXinifile::display  - overloaded method
%
% displays the content of an BVQXinifile object
%
% FORMAT:       display(IniFileObject)
%
% Input fields:
%
%       IniFileObject   object of which content should be displayed

% Version:      v0.7b
% Build:        7090311
% Date:         Sep-03 2007, 11:20 AM CEST
% Author:       Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL / Info:   http://wiki.brainvoyager.com/BVQXtools

% for sizes check
num_h = numel(S);
isf = isBVQXinifile(S);

% if we have output arguments
if num_h == 1
    if ~isf
        error( ...
            'BVQXinifile:InvalidObject', ...
            'Cannot display information on invalid object.' ...
        );
    end
    disp(BVQXinifile(S, 'display'));
else
    for hc = 1:num_h
        if ~isf(hc)
            continue;
        end
        disp('----------------------------------');
        try
            disp(BVQXinifile(S(hc), 'getfilename'));
            dips(BVQXinifile(S(hc), 'display'));
        catch
            rethrow(lasterror);
        end
    end
end
